<!DOCTYPE html>
<html>
<head>
    <title>公众号管理</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
        	<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;开发配置</a>
        	<a class="btn btn-primary" @click="commit"><i class="fa fa-plus"></i>&nbsp;代码上传</a>
        	<a class="btn btn-primary" @click="submit_audit"><i class="fa fa-plus"></i>&nbsp;提交审核</a>
        	<a class="btn btn-primary" @click="release"><i class="fa fa-plus"></i>&nbsp;发布小程序</a>
			<!-- <#if shiro.hasPermission("wechat:wechat:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("wechat:wechat:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if> 
			<#if shiro.hasPermission("wechat:wechat:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
											
					<div class="form-group">
                        <div class="col-sm-2 control-label">模版ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"  v-model="wechat.templateId" placeholder="代码库中的代码模版ID"/>
                        </div>
                    </div>
					
					<div class="form-group">
                        <div class="col-sm-2 control-label">版本号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"  v-model="wechat.userVersion" placeholder="代码版本号，开发者可自定义（长度不要超过64个字符）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"  v-model="wechat.userDesc" placeholder="代码描述，开发者可自定义"/>
                        </div>
                    </div>
                    
                    
							
			 <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/wechat/wechatlist.js?_${.now?long}"></script>
</body>
</html>